package com.lp.bo;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.List;
import java.util.Objects;

/**
 * @author thomas.he
 * @Description:
 * @date 2021/7/27 21:24
 */
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class IotSceneVisualBO {

    private Integer id;
    private String name;
    private List<IotVisualDisplayInfoBO> visualList;

    public Integer getId()
    {
        return this.id; }
    public String getName() { return this.name; }
    public List<IotVisualDisplayInfoBO> getVisualList() { return this.visualList; }
    public void setId(Integer id) { this.id = id; }
    public void setName(String name) { this.name = name; }
    public void setVisualList(List<IotVisualDisplayInfoBO> visualList) { this.visualList = visualList; }
    public String toString() { return "IotSceneVisualBO(id=" + getId() + ", name=" + getName() + ", visualList=" + getVisualList() + ")"; }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof IotSceneVisualBO)) return false;
        IotSceneVisualBO that = (IotSceneVisualBO) o;
        return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(visualList, that.visualList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, visualList);
    }
}
